<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Photo extends MY_Controller {

    function __construct() {
        parent::__construct();
        
        $this->layout->set_layout("default");
        
        $this->load->model('photo_model');
    }

    public function index() {
        $this->layout->set_title('ABC');
        $this->layout->set_description("description");
        $this->layout->set_keyword("keyword");
        $this->layout->set_image("image");
        // get Article Category
    	$categories = $this->photo_model->getPhotos(NULL, NULL, FALSE);
            //print_r($categories);
        $data['categories'] = $categories;
        $this->parser->parse('index', $data);
    }
    
     public function detail($id) {
        $data['id'] = $id;
        $this->parser->parse('detail', $data);
     }

}

?>
